package com.service.single.example.pattern.observer;

/**
 *  观察者 1
 */
public class OneObserver extends Observer {

    public OneObserver() {

    }

    public OneObserver(Subject subject) {
        subject.addObserver(this);
    }


    @Override
    public void update(int state) {

        System.out.println("OneObserver ===" + state);
    }

}
